package cn.tedu.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserDao {
    public static void main(String[] args) {
        ApplicationContext conext=new AnnotationConfigApplicationContext
                ("cn.tedu.spring.di");
        UserDao bean = conext.getBean(UserDao.class);
        System.out.println(bean);
    }
}
